package study01;

public class Java03_dowhile {
    public static void main(String[] args) {
        System.out.println("1");
        System.out.println("2");
        int i = 10;
//        // 至少执行一次循环
//        do {
//            System.out.println("我是循环的代码");
//        } while ( i < 20);

        for (int j = 0; j < 9; j++) {
            for (int _i = 0; _i < 9 - j; _i++) {
                System.out.print(" ");
            }
            for (int _i = 0; _i < j * 2 + 1; _i++) {
                System.out.print("*");
            }
            System.out.println("");
        }
        System.out.println("3");
    }
}
